#!/usr/bin/env python
# -*- conding: utf-8 -*-

"""
@Time     : 2024/8/12 21:13
@Author   : liujingmao
@File     : DuckDuckGoSearch.py
"""

from langchain_community.tools import DuckDuckGoSearchRun, DuckDuckGoSearchResults

search2 = DuckDuckGoSearchResults()

search = DuckDuckGoSearchRun()

re = search.invoke("华为的创始人是哪位？")

# print("name:", search.name)
# print("description:", search.description)

print(re)
